// mock js

import Mock from 'mockjs'

// 模拟数据
const data = Mock.mock({
  'items|30': [{
    id: '@id',
    name: '@name',
    'age|18-30': 1
  }]
})
 
Mock.mock('/api/users', 'get', () => {
  return {
    code: 200,
    data: data.items
  }
})